package com.cbs.management.mapper;
import java.io.Serializable;
import com.cbs.management.model.*;
import com.cbs.management.dto.*;
public class SiteMapper  implements Serializable {
    public Site dtoToPersistence(SiteDTO dto){
        if(dto == null){
           return null;
        }
        Site ret = new Site();
        ret.setId(dto.getId());
        ret.setName(dto.getName());
        ret.setAddress(dto.getAddress());
        ret.setStatus(dto.getStatus());
        return ret;
    }
    public SiteDTO persistentToDto(Site model){
        if(model == null){
           return null;
        }
        SiteDTO ret = new SiteDTO();
        ret.setId(model.getId());
        ret.setName(model.getName());
        ret.setAddress(model.getAddress());
        ret.setStatus(model.getStatus());
        return ret;
    }
    public SiteMapper (){}
    
}    